﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Upload Files
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Upload Multiples Files with in one Submit</h2>
    <% using (Html.BeginForm("UploadFiles", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
       {%>
    <div>
        <label for="file1">
            Filename:</label>
        <input type="file" name="files" id="file1" />
    </div>
    <div style='margin-top:10px;'>
        <label for="file2">
            Filename:</label>
        <input type="file" name="files" id="file2" />
    </div>
    <p>
        <input type="submit" value="Submit Files" />
    </p>
    <%}%>
</asp:Content>
